-- GENERATED SPELL FOR [Human Cleric] --


function spell0_21682(pUnit, Event) --@Healing,Heal--
pUnit:FullCastSpellOnTarget(37455,pUnit)
pUnit:RegisterEvent('Sorts_21682', 0, 1)
end

function spell1_21682(pUnit, Event) --@Holy Lance,n/a--
pUnit:FullCastSpellOnTarget(37459,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21682', 0, 1)
end

function Sorts_21682(pUnit, Event)
local choix_sorts_21682 = math.random(0, 1)
if choix_sorts_21682 == 0 then
pUnit:RegisterEvent('spell0_21682', 1, 1)
end
if choix_sorts_21682 == 1 then
pUnit:RegisterEvent('spell1_21682', 1, 1)
end
end

function mob21682_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21682', math.random(1500, 3000), 1)
end

function mob21682_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21682_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21682_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21682, 1, 'mob21682_Action')
RegisterUnitEvent(21682, 2, 'mob21682_Leave')
RegisterUnitEvent(21682, 3, 'mob21682_Kill')
RegisterUnitEvent(21682, 4, 'mob21682_Die')
